package com.yuyue.springFramework.note07.entity;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * 定义Condition 的实现类，重写匹配方法，直接返回false
 */
public class MyCondition1 implements Condition {
    @Override
    //是否匹配方法
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        //不匹配
        return false;
    }
}
